Projects each element of a collection to a sequence of collections and flattens the resulting collections into one collection.
Namespace:
C1.LiveLinqAssembly: C1.LiveLinq (in C1.LiveLinq.dll)
Syntax
C# |
---|
public static IIndexedSource<TResult> SelectMany<TSource, TResult>( this IIndexedSource<TSource> source, Expression<Func<TSource, IEnumerable<TResult>>> selector ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function SelectMany(Of TSource, TResult) ( _ source As IIndexedSource(Of TSource), _ selector As Expression(Of Func(Of TSource, IEnumerable(Of TResult))) _ ) As IIndexedSource(Of TResult) |
Parameters
- source
- Type: C1.LiveLinq.Indexing..::..IIndexedSource<(Of <(<'TSource>)>)>
A collection of values to project.
- selector
- Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'TSource, IEnumerable<(Of <(<'TResult>)>)>>)>)>>)>)>
A transform function to apply to each element.
Type Parameters
- TSource
- The type of the elements of source.
- TResult
- The type of the elements of the sequence returned by selector.